package com.airport.ticket.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class FlightInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FlightInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andFlightNumberIsNull() {
            addCriterion("flight_number is null");
            return (Criteria) this;
        }

        public Criteria andFlightNumberIsNotNull() {
            addCriterion("flight_number is not null");
            return (Criteria) this;
        }

        public Criteria andFlightNumberEqualTo(String value) {
            addCriterion("flight_number =", value, "flightNumber");
            return (Criteria) this;
        }

        public Criteria andFlightNumberNotEqualTo(String value) {
            addCriterion("flight_number <>", value, "flightNumber");
            return (Criteria) this;
        }

        public Criteria andFlightNumberGreaterThan(String value) {
            addCriterion("flight_number >", value, "flightNumber");
            return (Criteria) this;
        }

        public Criteria andFlightNumberGreaterThanOrEqualTo(String value) {
            addCriterion("flight_number >=", value, "flightNumber");
            return (Criteria) this;
        }

        public Criteria andFlightNumberLessThan(String value) {
            addCriterion("flight_number <", value, "flightNumber");
            return (Criteria) this;
        }

        public Criteria andFlightNumberLessThanOrEqualTo(String value) {
            addCriterion("flight_number <=", value, "flightNumber");
            return (Criteria) this;
        }

        public Criteria andFlightNumberLike(String value) {
            addCriterion("flight_number like", value, "flightNumber");
            return (Criteria) this;
        }

        public Criteria andFlightNumberNotLike(String value) {
            addCriterion("flight_number not like", value, "flightNumber");
            return (Criteria) this;
        }

        public Criteria andFlightNumberIn(List<String> values) {
            addCriterion("flight_number in", values, "flightNumber");
            return (Criteria) this;
        }

        public Criteria andFlightNumberNotIn(List<String> values) {
            addCriterion("flight_number not in", values, "flightNumber");
            return (Criteria) this;
        }

        public Criteria andFlightNumberBetween(String value1, String value2) {
            addCriterion("flight_number between", value1, value2, "flightNumber");
            return (Criteria) this;
        }

        public Criteria andFlightNumberNotBetween(String value1, String value2) {
            addCriterion("flight_number not between", value1, value2, "flightNumber");
            return (Criteria) this;
        }

        public Criteria andFlightCompanyIsNull() {
            addCriterion("flight_company is null");
            return (Criteria) this;
        }

        public Criteria andFlightCompanyIsNotNull() {
            addCriterion("flight_company is not null");
            return (Criteria) this;
        }

        public Criteria andFlightCompanyEqualTo(String value) {
            addCriterion("flight_company =", value, "flightCompany");
            return (Criteria) this;
        }

        public Criteria andFlightCompanyNotEqualTo(String value) {
            addCriterion("flight_company <>", value, "flightCompany");
            return (Criteria) this;
        }

        public Criteria andFlightCompanyGreaterThan(String value) {
            addCriterion("flight_company >", value, "flightCompany");
            return (Criteria) this;
        }

        public Criteria andFlightCompanyGreaterThanOrEqualTo(String value) {
            addCriterion("flight_company >=", value, "flightCompany");
            return (Criteria) this;
        }

        public Criteria andFlightCompanyLessThan(String value) {
            addCriterion("flight_company <", value, "flightCompany");
            return (Criteria) this;
        }

        public Criteria andFlightCompanyLessThanOrEqualTo(String value) {
            addCriterion("flight_company <=", value, "flightCompany");
            return (Criteria) this;
        }

        public Criteria andFlightCompanyLike(String value) {
            addCriterion("flight_company like", value, "flightCompany");
            return (Criteria) this;
        }

        public Criteria andFlightCompanyNotLike(String value) {
            addCriterion("flight_company not like", value, "flightCompany");
            return (Criteria) this;
        }

        public Criteria andFlightCompanyIn(List<String> values) {
            addCriterion("flight_company in", values, "flightCompany");
            return (Criteria) this;
        }

        public Criteria andFlightCompanyNotIn(List<String> values) {
            addCriterion("flight_company not in", values, "flightCompany");
            return (Criteria) this;
        }

        public Criteria andFlightCompanyBetween(String value1, String value2) {
            addCriterion("flight_company between", value1, value2, "flightCompany");
            return (Criteria) this;
        }

        public Criteria andFlightCompanyNotBetween(String value1, String value2) {
            addCriterion("flight_company not between", value1, value2, "flightCompany");
            return (Criteria) this;
        }

        public Criteria andFlightModelIsNull() {
            addCriterion("flight_model is null");
            return (Criteria) this;
        }

        public Criteria andFlightModelIsNotNull() {
            addCriterion("flight_model is not null");
            return (Criteria) this;
        }

        public Criteria andFlightModelEqualTo(String value) {
            addCriterion("flight_model =", value, "flightModel");
            return (Criteria) this;
        }

        public Criteria andFlightModelNotEqualTo(String value) {
            addCriterion("flight_model <>", value, "flightModel");
            return (Criteria) this;
        }

        public Criteria andFlightModelGreaterThan(String value) {
            addCriterion("flight_model >", value, "flightModel");
            return (Criteria) this;
        }

        public Criteria andFlightModelGreaterThanOrEqualTo(String value) {
            addCriterion("flight_model >=", value, "flightModel");
            return (Criteria) this;
        }

        public Criteria andFlightModelLessThan(String value) {
            addCriterion("flight_model <", value, "flightModel");
            return (Criteria) this;
        }

        public Criteria andFlightModelLessThanOrEqualTo(String value) {
            addCriterion("flight_model <=", value, "flightModel");
            return (Criteria) this;
        }

        public Criteria andFlightModelLike(String value) {
            addCriterion("flight_model like", value, "flightModel");
            return (Criteria) this;
        }

        public Criteria andFlightModelNotLike(String value) {
            addCriterion("flight_model not like", value, "flightModel");
            return (Criteria) this;
        }

        public Criteria andFlightModelIn(List<String> values) {
            addCriterion("flight_model in", values, "flightModel");
            return (Criteria) this;
        }

        public Criteria andFlightModelNotIn(List<String> values) {
            addCriterion("flight_model not in", values, "flightModel");
            return (Criteria) this;
        }

        public Criteria andFlightModelBetween(String value1, String value2) {
            addCriterion("flight_model between", value1, value2, "flightModel");
            return (Criteria) this;
        }

        public Criteria andFlightModelNotBetween(String value1, String value2) {
            addCriterion("flight_model not between", value1, value2, "flightModel");
            return (Criteria) this;
        }

        public Criteria andDeparturePlaceIsNull() {
            addCriterion("departure_place is null");
            return (Criteria) this;
        }

        public Criteria andDeparturePlaceIsNotNull() {
            addCriterion("departure_place is not null");
            return (Criteria) this;
        }

        public Criteria andDeparturePlaceEqualTo(String value) {
            addCriterion("departure_place =", value, "departurePlace");
            return (Criteria) this;
        }

        public Criteria andDeparturePlaceNotEqualTo(String value) {
            addCriterion("departure_place <>", value, "departurePlace");
            return (Criteria) this;
        }

        public Criteria andDeparturePlaceGreaterThan(String value) {
            addCriterion("departure_place >", value, "departurePlace");
            return (Criteria) this;
        }

        public Criteria andDeparturePlaceGreaterThanOrEqualTo(String value) {
            addCriterion("departure_place >=", value, "departurePlace");
            return (Criteria) this;
        }

        public Criteria andDeparturePlaceLessThan(String value) {
            addCriterion("departure_place <", value, "departurePlace");
            return (Criteria) this;
        }

        public Criteria andDeparturePlaceLessThanOrEqualTo(String value) {
            addCriterion("departure_place <=", value, "departurePlace");
            return (Criteria) this;
        }

        public Criteria andDeparturePlaceLike(String value) {
            addCriterion("departure_place like", value, "departurePlace");
            return (Criteria) this;
        }

        public Criteria andDeparturePlaceNotLike(String value) {
            addCriterion("departure_place not like", value, "departurePlace");
            return (Criteria) this;
        }

        public Criteria andDeparturePlaceIn(List<String> values) {
            addCriterion("departure_place in", values, "departurePlace");
            return (Criteria) this;
        }

        public Criteria andDeparturePlaceNotIn(List<String> values) {
            addCriterion("departure_place not in", values, "departurePlace");
            return (Criteria) this;
        }

        public Criteria andDeparturePlaceBetween(String value1, String value2) {
            addCriterion("departure_place between", value1, value2, "departurePlace");
            return (Criteria) this;
        }

        public Criteria andDeparturePlaceNotBetween(String value1, String value2) {
            addCriterion("departure_place not between", value1, value2, "departurePlace");
            return (Criteria) this;
        }

        public Criteria andArrivalPlaceIsNull() {
            addCriterion("arrival_place is null");
            return (Criteria) this;
        }

        public Criteria andArrivalPlaceIsNotNull() {
            addCriterion("arrival_place is not null");
            return (Criteria) this;
        }

        public Criteria andArrivalPlaceEqualTo(String value) {
            addCriterion("arrival_place =", value, "arrivalPlace");
            return (Criteria) this;
        }

        public Criteria andArrivalPlaceNotEqualTo(String value) {
            addCriterion("arrival_place <>", value, "arrivalPlace");
            return (Criteria) this;
        }

        public Criteria andArrivalPlaceGreaterThan(String value) {
            addCriterion("arrival_place >", value, "arrivalPlace");
            return (Criteria) this;
        }

        public Criteria andArrivalPlaceGreaterThanOrEqualTo(String value) {
            addCriterion("arrival_place >=", value, "arrivalPlace");
            return (Criteria) this;
        }

        public Criteria andArrivalPlaceLessThan(String value) {
            addCriterion("arrival_place <", value, "arrivalPlace");
            return (Criteria) this;
        }

        public Criteria andArrivalPlaceLessThanOrEqualTo(String value) {
            addCriterion("arrival_place <=", value, "arrivalPlace");
            return (Criteria) this;
        }

        public Criteria andArrivalPlaceLike(String value) {
            addCriterion("arrival_place like", value, "arrivalPlace");
            return (Criteria) this;
        }

        public Criteria andArrivalPlaceNotLike(String value) {
            addCriterion("arrival_place not like", value, "arrivalPlace");
            return (Criteria) this;
        }

        public Criteria andArrivalPlaceIn(List<String> values) {
            addCriterion("arrival_place in", values, "arrivalPlace");
            return (Criteria) this;
        }

        public Criteria andArrivalPlaceNotIn(List<String> values) {
            addCriterion("arrival_place not in", values, "arrivalPlace");
            return (Criteria) this;
        }

        public Criteria andArrivalPlaceBetween(String value1, String value2) {
            addCriterion("arrival_place between", value1, value2, "arrivalPlace");
            return (Criteria) this;
        }

        public Criteria andArrivalPlaceNotBetween(String value1, String value2) {
            addCriterion("arrival_place not between", value1, value2, "arrivalPlace");
            return (Criteria) this;
        }

        public Criteria andDepartureAirportIsNull() {
            addCriterion("departure_airport is null");
            return (Criteria) this;
        }

        public Criteria andDepartureAirportIsNotNull() {
            addCriterion("departure_airport is not null");
            return (Criteria) this;
        }

        public Criteria andDepartureAirportEqualTo(String value) {
            addCriterion("departure_airport =", value, "departureAirport");
            return (Criteria) this;
        }

        public Criteria andDepartureAirportNotEqualTo(String value) {
            addCriterion("departure_airport <>", value, "departureAirport");
            return (Criteria) this;
        }

        public Criteria andDepartureAirportGreaterThan(String value) {
            addCriterion("departure_airport >", value, "departureAirport");
            return (Criteria) this;
        }

        public Criteria andDepartureAirportGreaterThanOrEqualTo(String value) {
            addCriterion("departure_airport >=", value, "departureAirport");
            return (Criteria) this;
        }

        public Criteria andDepartureAirportLessThan(String value) {
            addCriterion("departure_airport <", value, "departureAirport");
            return (Criteria) this;
        }

        public Criteria andDepartureAirportLessThanOrEqualTo(String value) {
            addCriterion("departure_airport <=", value, "departureAirport");
            return (Criteria) this;
        }

        public Criteria andDepartureAirportLike(String value) {
            addCriterion("departure_airport like", value, "departureAirport");
            return (Criteria) this;
        }

        public Criteria andDepartureAirportNotLike(String value) {
            addCriterion("departure_airport not like", value, "departureAirport");
            return (Criteria) this;
        }

        public Criteria andDepartureAirportIn(List<String> values) {
            addCriterion("departure_airport in", values, "departureAirport");
            return (Criteria) this;
        }

        public Criteria andDepartureAirportNotIn(List<String> values) {
            addCriterion("departure_airport not in", values, "departureAirport");
            return (Criteria) this;
        }

        public Criteria andDepartureAirportBetween(String value1, String value2) {
            addCriterion("departure_airport between", value1, value2, "departureAirport");
            return (Criteria) this;
        }

        public Criteria andDepartureAirportNotBetween(String value1, String value2) {
            addCriterion("departure_airport not between", value1, value2, "departureAirport");
            return (Criteria) this;
        }

        public Criteria andArrivalAirportIsNull() {
            addCriterion("arrival_airport is null");
            return (Criteria) this;
        }

        public Criteria andArrivalAirportIsNotNull() {
            addCriterion("arrival_airport is not null");
            return (Criteria) this;
        }

        public Criteria andArrivalAirportEqualTo(String value) {
            addCriterion("arrival_airport =", value, "arrivalAirport");
            return (Criteria) this;
        }

        public Criteria andArrivalAirportNotEqualTo(String value) {
            addCriterion("arrival_airport <>", value, "arrivalAirport");
            return (Criteria) this;
        }

        public Criteria andArrivalAirportGreaterThan(String value) {
            addCriterion("arrival_airport >", value, "arrivalAirport");
            return (Criteria) this;
        }

        public Criteria andArrivalAirportGreaterThanOrEqualTo(String value) {
            addCriterion("arrival_airport >=", value, "arrivalAirport");
            return (Criteria) this;
        }

        public Criteria andArrivalAirportLessThan(String value) {
            addCriterion("arrival_airport <", value, "arrivalAirport");
            return (Criteria) this;
        }

        public Criteria andArrivalAirportLessThanOrEqualTo(String value) {
            addCriterion("arrival_airport <=", value, "arrivalAirport");
            return (Criteria) this;
        }

        public Criteria andArrivalAirportLike(String value) {
            addCriterion("arrival_airport like", value, "arrivalAirport");
            return (Criteria) this;
        }

        public Criteria andArrivalAirportNotLike(String value) {
            addCriterion("arrival_airport not like", value, "arrivalAirport");
            return (Criteria) this;
        }

        public Criteria andArrivalAirportIn(List<String> values) {
            addCriterion("arrival_airport in", values, "arrivalAirport");
            return (Criteria) this;
        }

        public Criteria andArrivalAirportNotIn(List<String> values) {
            addCriterion("arrival_airport not in", values, "arrivalAirport");
            return (Criteria) this;
        }

        public Criteria andArrivalAirportBetween(String value1, String value2) {
            addCriterion("arrival_airport between", value1, value2, "arrivalAirport");
            return (Criteria) this;
        }

        public Criteria andArrivalAirportNotBetween(String value1, String value2) {
            addCriterion("arrival_airport not between", value1, value2, "arrivalAirport");
            return (Criteria) this;
        }

        public Criteria andDepartureTimeIsNull() {
            addCriterion("departure_time is null");
            return (Criteria) this;
        }

        public Criteria andDepartureTimeIsNotNull() {
            addCriterion("departure_time is not null");
            return (Criteria) this;
        }

        public Criteria andDepartureTimeEqualTo(Date value) {
            addCriterion("departure_time =", value, "departureTime");
            return (Criteria) this;
        }

        public Criteria andDepartureTimeNotEqualTo(Date value) {
            addCriterion("departure_time <>", value, "departureTime");
            return (Criteria) this;
        }

        public Criteria andDepartureTimeGreaterThan(Date value) {
            addCriterion("departure_time >", value, "departureTime");
            return (Criteria) this;
        }

        public Criteria andDepartureTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("departure_time >=", value, "departureTime");
            return (Criteria) this;
        }

        public Criteria andDepartureTimeLessThan(Date value) {
            addCriterion("departure_time <", value, "departureTime");
            return (Criteria) this;
        }

        public Criteria andDepartureTimeLessThanOrEqualTo(Date value) {
            addCriterion("departure_time <=", value, "departureTime");
            return (Criteria) this;
        }

        public Criteria andDepartureTimeIn(List<Date> values) {
            addCriterion("departure_time in", values, "departureTime");
            return (Criteria) this;
        }

        public Criteria andDepartureTimeNotIn(List<Date> values) {
            addCriterion("departure_time not in", values, "departureTime");
            return (Criteria) this;
        }

        public Criteria andDepartureTimeBetween(Date value1, Date value2) {
            addCriterion("departure_time between", value1, value2, "departureTime");
            return (Criteria) this;
        }

        public Criteria andDepartureTimeNotBetween(Date value1, Date value2) {
            addCriterion("departure_time not between", value1, value2, "departureTime");
            return (Criteria) this;
        }

        public Criteria andArrivalTimeIsNull() {
            addCriterion("arrival_time is null");
            return (Criteria) this;
        }

        public Criteria andArrivalTimeIsNotNull() {
            addCriterion("arrival_time is not null");
            return (Criteria) this;
        }

        public Criteria andArrivalTimeEqualTo(Date value) {
            addCriterion("arrival_time =", value, "arrivalTime");
            return (Criteria) this;
        }

        public Criteria andArrivalTimeNotEqualTo(Date value) {
            addCriterion("arrival_time <>", value, "arrivalTime");
            return (Criteria) this;
        }

        public Criteria andArrivalTimeGreaterThan(Date value) {
            addCriterion("arrival_time >", value, "arrivalTime");
            return (Criteria) this;
        }

        public Criteria andArrivalTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("arrival_time >=", value, "arrivalTime");
            return (Criteria) this;
        }

        public Criteria andArrivalTimeLessThan(Date value) {
            addCriterion("arrival_time <", value, "arrivalTime");
            return (Criteria) this;
        }

        public Criteria andArrivalTimeLessThanOrEqualTo(Date value) {
            addCriterion("arrival_time <=", value, "arrivalTime");
            return (Criteria) this;
        }

        public Criteria andArrivalTimeIn(List<Date> values) {
            addCriterion("arrival_time in", values, "arrivalTime");
            return (Criteria) this;
        }

        public Criteria andArrivalTimeNotIn(List<Date> values) {
            addCriterion("arrival_time not in", values, "arrivalTime");
            return (Criteria) this;
        }

        public Criteria andArrivalTimeBetween(Date value1, Date value2) {
            addCriterion("arrival_time between", value1, value2, "arrivalTime");
            return (Criteria) this;
        }

        public Criteria andArrivalTimeNotBetween(Date value1, Date value2) {
            addCriterion("arrival_time not between", value1, value2, "arrivalTime");
            return (Criteria) this;
        }

        public Criteria andPriceIsNull() {
            addCriterion("price is null");
            return (Criteria) this;
        }

        public Criteria andPriceIsNotNull() {
            addCriterion("price is not null");
            return (Criteria) this;
        }

        public Criteria andPriceEqualTo(BigDecimal value) {
            addCriterion("price =", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotEqualTo(BigDecimal value) {
            addCriterion("price <>", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThan(BigDecimal value) {
            addCriterion("price >", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("price >=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThan(BigDecimal value) {
            addCriterion("price <", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("price <=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceIn(List<BigDecimal> values) {
            addCriterion("price in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotIn(List<BigDecimal> values) {
            addCriterion("price not in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("price between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("price not between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}